/**
 * Created by Zhang JiRen
 * @date 2022/7/22 0022
 */
import request from "@/utils/request";

const list = params => {
  return request({
    url: "/api/v1/download/list",
    method: "get",
    data: params
  });
};

const download = params => {
  return request({
    url: "/api/v1/download",
    method: "get",
    data: params,
    responseType: "blob"
  });
};

export default {
  list,
  download
};
